export const separator = '##'

export const iconTypeMap = {
    libraryIcon: 'libraryIcon',
    localSvgIcon: 'localSvgIcon'
}

export const getFullIconName = (iconType, iconName) => {
    return `${iconType}${separator}${iconName}`
}

export const splitFullIconName = _fullIconName => {
    const [iconType = '', iconName = ''] = _fullIconName.split(separator)
    return {
        iconType,
        iconName
    }
}